﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using IHISCETeim.BLL;
using IHISCETeim.Library;
using IHISCETeim.Model;
using System.Data;
using System.Text;

namespace IHISCETeim.Web.MachineSys.MarketModel
{
    public partial class MBaoYangGetZSYY : PageBase
    {
        protected override string DWZRef
        {
            get
            {
                return "MBaoYangListEasyUI";
            }
        }
        /// <summary>
        /// 不用权限
        /// </summary>
        protected override Permission[] PowerKey
        {
            get
            {
                return new Permission[] { Permission.none };
            }
        }

        private string _globalTag = "";
        /// <summary>
        /// 来源标记，用于ID，防止打开两个页面有相同的ID标记
        /// </summary>
        protected string globalTag
        {
            get
            {
                if (_globalTag == "")
                    _globalTag = GetRequestValue<string>("tag", "add");
                return _globalTag;
            }
        }
        //传入回款条款类型
        protected string key
        {
            get
            {
                return GetRequestValue<string>("key", "");
            }
        }

        protected int ID
        {
            get {
                return GetRequestValue<int>("id", 0);
            }
        }

        protected string Action {
            get {
                return GetRequestValue<string>("action", "view");
            }
        }

        private MBaoYangInfo _obj = null;
        protected MBaoYangInfo obj
        {
            get {
                if (ID > 0)
                {
                    if (_obj == null)
                    {
                        _obj = MBaoYangController.GetByID(ID);
                    }
                }
                else
                    _obj = new MBaoYangInfo();
                return _obj;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }
    }
}